import { createStore } from "vuex";

interface State {
  count: number;
}

export const store = createStore<State>({
  state() {
    return {
      count: 0,
    };
  },
  mutations: {
    increment(state, a: number) {
      state.count += a;
    },
  },
});
